import housePropertyRegistrationService from "@/serive/housePropertyRegistrationService";

export default {
    state: {
        registrationPage:[]
    },
    getters: {
        getregistrationPage(state){
            return[...state.getregistrationPage]
        }
    },
    mutations: {
        setTest(state,data){
            console.log(data);
            state.registrationPage=data
        }
    },
    actions: {//异步操作
        async registrationPage({commit},{limit,page,hpName}){
            let result=await housePropertyRegistrationService.registrationPage(limit,page,hpName);
            commit("setTest",result.data)
            return result
        }
    },
   
    // strict: debug
  }